package com.example.hrmsaas.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.hrmsaas.system.entity.Permission;
import com.example.hrmsaas.system.utils.DataGridView;
import com.example.hrmsaas.system.utils.vo.PermissionVo;

import java.util.List;
import java.util.Map;


public interface IPermissionService extends IService<Permission> {

    DataGridView getPermissionList(PermissionVo permissionVo);

    boolean add(Map<String,Object> map) throws Exception;

    boolean edit(Map<String,Object> map) throws Exception;

    boolean del(String id) throws Exception;

    DataGridView info(String id) throws Exception;

    Permission getById(String id);

    List<Permission> getPermissionAll(PermissionVo permVo);



    List<Permission> findByTypeAndPid(int pyApi, String id);
}
